

        <div class="main fly-user-main layui-clear">
    <ul class="layui-nav layui-nav-tree layui-inline" lay-filter="user">
        <li class="layui-nav-item">
            <a href="/u/4209576/">
                <i class="layui-icon">
                    
                </i>
                我的主页
            </a>
        </li>
        <li class="layui-nav-item ">
            <a href="/user/">
                <i class="layui-icon">
                    
                </i>
                用户中心
            </a>
        </li>
        <li class="layui-nav-item layui-this">
            <a href="/user/set/">
                <i class="layui-icon">
                    
                </i>
                基本设置
            </a>
        </li>
        <li class="layui-nav-item ">
            <a href="/user/message/">
                <i class="layui-icon">
                    
                </i>
                我的消息
            </a>
        </li>
        <li class="layui-nav-item ">
            <a href="/auth/get/">
                <i class="layui-icon">
                    
                </i>
                产品授权
            </a>
        </li>
        <span class="layui-nav-bar" style="top: 77.5px; height: 0px; opacity: 0;">
        </span>
    </ul>
    <div class="site-tree-mobile layui-hide">
        <i class="layui-icon">
            
        </i>
    </div>
    <div class="site-mobile-shade">
    </div>
    <div class="fly-panel fly-panel-user" pad20="">
        <div class="layui-tab layui-tab-brief" lay-filter="user">
            <ul class="layui-tab-title" id="LAY_mine">
                <li  lay-id="info">
                    我的资料
                </li>
                <li lay-id="avatar" class="layui-this">
                    头像
                </li>
                <li lay-id="pass" class="">
                    密码
                </li>
                <li lay-id="bind">
                    帐号绑定
                </li>
            </ul>
            <div class="layui-tab-content" style="padding: 20px 0;">
                
                <div class="layui-form layui-form-pane layui-tab-item layui-show">
                    <div id='meitu' style="width:660px;height:440px;">
                        
                    </div>
                

                </div>

            </div>
        </div>
    </div>
</div>
<script src="http://open.web.meitu.com/sources/xiuxiu.js" type="text/javascript"></script>
<script type="text/javascript">
window.onload=function(){
  /*第1个参数是加载编辑器div容器，第2个参数是编辑器类型，第3个参数是div容器宽，第4个参数是div容器高*/         
  xiuxiu.embedSWF("meitu",5,"650","440");
  //修改为您自己的图片上传接口 域名+root+
  xiuxiu.setUploadURL("http://127.0.0.1"+"{:U('home/set/upload')}");//"http://127.0.0.1"+"/yuephp/bbs1/index.php/home/set/upload.html" 生成的JS代码 并自动拼接
  xiuxiu.setUploadType(2);
  xiuxiu.setUploadDataFieldName("upload_file");
  xiuxiu.onInit = function ()
  {
    xiuxiu.loadPhoto("http://127.0.0.1__ROOT__"+"<?php echo $_SESSION['face'] ?>");//"http://open.web.meitu.com/sources/images/1.jpg"修改为要处理的图片url 就是用户当前的头像
  }
  xiuxiu.onUploadResponse = function (data)
  { //alert("上传响应" + data); //可以开启调试
    if(data=='0'){
        alert("上传失败");
    }else{
        location.reload();
    }
    
  }
}
</script>